<template>
  <div>
   <h2> 我是一个测试组件</h2>
    <van-button type="primary" @click="totest">去首页</van-button>
    
    <van-button type="info">信息按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
  </div>
</template>

<script>
  export default {
    name:'Test',
    methods:{
      totest(){
      this.$router.push('/home')
    }
    }
  }
</script>

<style lang="less" scoped>
  
</style>